package com.hoyue.interact.bean;

import java.util.Date;

public class Matter {

    //话题id
    private Integer id;
    //
    private Integer questionid;
    //
    private Date createdate;
    //
    private Date starttime;
    //
    private Date endtime;

    private Integer typ;
    //话题标题
    private String headline;
    //内容
    private String mdetail;

    //创建人
    private  String username;

    private Integer istop;

    public Integer getIstop() {
        return istop;
    }

    public void setIstop(Integer istop) {
        this.istop = istop;
    }

    public Integer getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getQuestionid() {
        return questionid;
    }

    public void setQuestionid(Integer questionid) {
        this.questionid = questionid;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Integer getTyp() {
        return typ;
    }

    public void setTyp(Integer typ) {
        this.typ = typ;
    }

    public String getHeadline() {
        return headline;
    }

    public void setHeadline(String headline) {
        this.headline = headline == null ? null : headline.trim();
    }

    public String getMdetail() {
        return mdetail;
    }

    public void setMdetail(String mdetail) {
        this.mdetail = mdetail == null ? null : mdetail.trim();
    }

    public  Matter(Integer istop){
    this.istop=istop;
    }

    public  Matter()
    {
    }



    public Matter(String headline, String mdetail,Date starttime,Date endtime,Date createdate,String username){


        this.headline=headline;
        this.mdetail=mdetail;
       this.createdate=createdate;
        this.starttime=starttime;
        this.endtime=endtime;
        this.username=username;
    }

    public Matter(String headline, String mdetail,Date starttime,Date endtime,Date createdate,Integer id){


        this.headline=headline;
        this.mdetail=mdetail;
        this.createdate=createdate;
        this.starttime=starttime;
        this.endtime=endtime;
        this.id=id;

    }

    @Override
    public String toString() {
        return "Matter{" +
                "id=" + id +
                ", questionid=" + questionid +
                ", createdate=" + createdate +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", typ=" + typ +
                ", headline='" + headline + '\'' +
                ", mdetail='" + mdetail + '\'' +
                ", username='" + username + '\'' +
                ", istop=" + istop +
                '}';
    }
}